package com.pine.dcts.test;

import java.util.concurrent.Callable;

/**
 * @author xiaoyuan
 * @create 2021/4/12 10:21
 **/
public class DemoCall implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        System.out.println("开始子线程计算。。。。");
        Thread.sleep(2000);
//        if(true){
//            Thread.interrupted();
//           // throw new RuntimeException("开始出现错误");
//        }
        return 1;
    }
}
